home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / virus / osci301e.zip / INSTALL.DAT < prev    next >
Text File  |  1997-05-22  |  7KB  |  201 lines

  1. /*
  2.  * Install script for VirusScan for OS/2 
  3.  *7 * Project: VirusScan
  4.  * Version: 2.2.4 Scan for OS/2
  5.  * Build 1
  6.   * Last Modified 07/14/95 by Dmitri Orlov
  7.   * Last Modified 02/27/95 by Neil Ordiers
  8.  */
  9.  
  10. @DefineProject
  11.     @Name = "VirusScan for OS/2"
  12.     @Version = "3.0.1"
  13.   @OutDrive = C
  14.   @SubDir = "\\MCAFEE"
  15.   @AssumeHardDisk = 1
  16. @EndProject
  17.  
  18. @ClearOption(1001)
  19. @ClearOption(1002)
  20. @ClearOption(2001)
  21. @ClearOption(2002)
  22. @ClearOption(3001)
  23. @ClearOption(3002)
  24. @ClearOption(4001)
  25. @ClearOption(4002)
  26. @ClearOption(5000)
  27. @ClearOption(5001)
  28. @ClearOption(9000)
  29. @ClearOption(9001)
  30.  
  31. /* Set default installation paths */
  32. @DefineVars
  33.   @Drive @SCANDrive = C
  34.   @Dir @SCANDir = "\\MCAFEE\\OS2SCAN"
  35. @EndVars
  36.  
  37. /* Check to see if OS/2 Version is below 2.0 */
  38. @If (@OSMajor==1)
  39.   @Display
  40.     @MoveCStr(01,01,79," McAFEE ")
  41.     @MoveCStr(05,04,78," WARNING!") @MoveCStr(05,13,79,"  Installation has detected OS/2 Version 1.x installed on    ")
  42.     @MoveCStr(06,04,79,"           this system.  VirusScan for OS/2 requires OS/2 Version 2.0 ")
  43.     @MoveCStr(07,04,79,"           or higher in order to successfully run.  Please upgrade    ")
  44.     @MoveCStr(08,04,79,"           your system before installing VirusScan for OS/2.          ")
  45.     @Move(20,1)
  46.     @Pause
  47.   @Exit
  48. @EndIf
  49. // Why is there @EndDisplay here?
  50. /* Display Title Screen */
  51. @Display
  52.   @Cls
  53.   @MoveCStr(01,17,31," Welcome to the McAfee VirusScan for OS/2 ")
  54.   @MoveCStr(02,17,31,"           Installation Program           ")
  55.   @MoveCStr(05,06,23," This program will copy VirusScan for OS/2 (OS2SCAN.EXE) onto your ")
  56.   @MoveCStr(06,06,23," IBM OS/2 2.0 or higher CPU and optionally update your CONFIG.SYS  ")
  57.   @MoveCStr(07,06,23," and AUTOEXEC.BAT files to allow you to run VirusScan for OS/2 and ")
  58.   @MoveCStr(08,06,23," use the VShield memory-resident virus-prevention program for your ")
  59.   @MoveCStr(09,06,23," DOS and WIN-OS2 sessions.                                         ")
  60.   @MoveCStr(12,17,23," Thank you for evaluating McAfee VirusScan.")
  61.   @MoveCStr(16,06,23," Press the [Esc] key at any time to stop the VirusScan installation")
  62.   @MoveCStr(18,12,23,"Copyright (c) 1994-1996 McAfee, Inc.  All rights reserved.")
  63.   @Move(19,01)
  64.                      @Pause
  65. @EndDisplay
  66.  
  67. /* Select VirusScan Installation Drive, Directory */
  68. GetAll:
  69. @ClearOption(4001)
  70. @ClearOption(4002)
  71. @GetOutDrive @SCANDrive
  72.   @Suppress (0,17)
  73.   @MoveCStr(01,24,31," VirusScan Installation Drive ")
  74.   @MoveCStr(05,01,23," NOTE:  Use the Up and Down")
  75.   @MoveCStr(06,01,23," Arrow keys and Enter to choose")
  76.   @MoveCStr(07,01,23," a drive.  The blinking bar is")
  77.   @MoveCStr(08,01,23," the cursor.")
  78.   @Move(16,1)
  79.      This allows you to specify the drive to install VirusScan onto.  This
  80.      includes the VirusScan program files, online documentation files, and
  81.      companion program files for VirusScan.  The next screen allows you to
  82.      specify the directory in which to install VirusScan.
  83. @EndOutDrive
  84. @GetSubDir @SCANDir
  85.   @Prompt = "Which subdirectory? ([Enter] = @SCANDir)"
  86.   @MoveCStr(01,22,31," VirusScan Installation Directory ")
  87.   @MoveCStr(03,03,23,"Into which directory on Drive @SCANDrive: should the VirusScan files be installed?")
  88.   @MoveCStr(16,38,31,"NOTE TO HPFS USERS:")
  89.   @MoveCStr(17,38,23,"Since the VShield virus-protection")
  90.   @MoveCStr(18,38,23,"program is for DOS and WIN-OS2 files")
  91.   @MoveCStr(19,38,23,"you must select a directory that can")
  92.   @MoveCStr(20,38,23,"be accessed by these programs.")
  93. @EndSubDir
  94.  
  95.  /* Check for old versions */
  96. @If (@Exists("@SCANDrive:\\@SCANDir\\OS2SCAN.EXE"))
  97. @ElseIf (@Exists("@SCANDrive:\\MCAFEE\\OS2SCAN\\OS2SCAN.EXE"))
  98. @ElseIf (@Exists("@SCANDrive:\\MCAFEE\\SCANOS2\\OS2SCAN.EXE"))
  99. @ElseIf (@Exists("@SCANDrive:\\MCAFEE\\@SCANDir\\VSHIELD.EXE"))
  100. @ElseIf (@Exists("@SCANDrive:\\MCAFEE\\OS2SCAN\\VSHIELD.EXE"))
  101. @ElseIf (@Exists("@SCANDrive:\\MCAFEE\\SCANOS2\\VSHIELD.EXE"))
  102.   @Goto Update  
  103. @EndIf
  104.  
  105. @Goto SCAN_OK
  106.  
  107. Update:
  108.   @Move(13,01)
  109.   @GetOption
  110.       VirusScan appears to be installed in @SCANDrive:@SCANDir.
  111.       Do you wish to update it to the current version?
  112.     @Option 4001 = "Yes, Update prior version"
  113.     @Option 4002 = "No,  Select another drive"
  114.   @EndOption
  115.  
  116. @If (4002 [= @Option) 
  117.   @Goto GetAll  
  118. @EndIf
  119.  
  120. SCAN_OK:
  121.  
  122. /* Update AUTOEXEC.BAT */
  123. @If (@Exists("@BootDrive:\\AUTOEXEC.BAT"))
  124.   @GetOption
  125.     @Cls
  126.     @MoveCStr(01,24,31," Update Your AUTOEXEC.BAT File ")
  127.     @Move(13,01)
  128.     To completely install VirusScan for OS/2, changes need to be made to
  129.     your CONFIG.SYS and AUTOEXEC.BAT files.  The PATH statement will be
  130.     updated with the @SCANDrive:@SCANDir directory, and VShield will be
  131.     added to your AUTOEXEC.BAT file to provide virus protection in DOS
  132.     and WIN-OS2 sessions.
  133.     Do you want Install to do this for you?
  134.     
  135.     @Option 5000 = "Yes, modify the AUTOEXEC.BAT file"
  136.     @Option 5001 = "No, save sample modifications to MCAFEE.BAT"
  137.   @EndOption
  138. @Else
  139.   @Display
  140.     The AUTOEXEC.BAT file cannot be found on your boot drive.
  141.     Normally, the installation would modify this file to load the
  142.     VShield virus-protection program when you run DOS and WIN-OS2
  143.     programs.
  144.  
  145.     A sample file has been created as @SCANDrive:@SCANDir\.VSH.TXT
  146.                 
  147.                 @Pause
  148.   @EndDisplay
  149. @EndIf
  150.  
  151. /*
  152.  * All information available now, go ahead and copy files
  153.  */
  154. @MoveCStr(01,01,31," Updating AUTOEXEC.BAT and CONFIG.SYS files... ")
  155. CompleteInstall:
  156.  
  157. @If (5001 [= @Option)
  158.   @If (@Exists("BootDrive:\\MCAFEE.BAT"))
  159.     @Delete("BootDrive:\\MCAFEE.BAT")
  160.   @EndIf
  161.   @System("ECHO REM ----- This line loads McAfee's VShield ----- >> @BootDrive:\\MCAFEE.BAT")
  162.   @System("ECHO @SCANDrive:\\@SCANDir\\VSHIELD.EXE >> @BootDrive:\\MCAFEE.BAT")
  163.   @System("TYPE @BootDrive:\\AUTOEXEC.BAT >> @BootDrive:\\MCAFEE.BAT")
  164.   @System("ECHO REM ----- This line re-activates VShield in case it has been disabled ----- >> @BootDrive:\\MCAFEE.BAT")
  165.   @System("ECHO @SCANDrive:\\@SCANDir\\VSHIELD.EXE /RECONNECT >> @BootDrive:\\MCAFEE.BAT")
  166. @Else
  167.   @SetAutoexec
  168.     @Overwrite
  169.     @Path = "@SCANDrive:\\@SCANDir;"
  170.     @Verbatim "@SCANDrive:@SCANDir\\VSHIELD.EXE"
  171.   @EndAutoexec
  172. @EndIf
  173.  
  174. @If (!(@Exists("@SCANDrive:\\@SCANDir")))
  175.   @MkDir ("@SCANDrive:\\@SCANDir")
  176. @EndIf
  177.  
  178. @MoveCStr(02,01,31," Copying VirusScan for OS/2 files... ")
  179. @Copy("OS2SCAN.EXE","@SCANDrive:\\@SCANDir\\*.*")
  180. @Copy("SCAN.DAT","@SCANDrive:\\@SCANDir\\*.*")
  181. @Copy("NAMES.DAT","@SCANDrive:\\@SCANDir\\*.*")
  182. @Copy("CLEAN.DAT","@SCANDrive:\\@SCANDir\\*.*")
  183.  
  184.  
  185.  
  186. @DefineDisk
  187.     @Label = "Disk #1"
  188.     @BeginLib OSCI301E.001
  189.         @F OS2VAL.EXE @S 34304 @O @SCANDrive:\\@SCANDir\\\OS2VAL.EXE
  190.         @F PH_OS2PL.EXE @S 29321 @O @SCANDrive:\\@SCANDir\\PH_OS2PL.EXE
  191.         @F CHKVSHLD.EXE @S 19109 @O @SCANDrive:\\@SCANDir\\CHKVSHLD.EXE
  192.         @F README.1ST @S 16922 @O @SCANDrive:\\@SCANDir\\README.1ST
  193.         @F RESELLER.TXT @S 29261 @O @SCANDrive:\\@SCANDir\\RESELLER.TXT
  194.         @F VSHEML.EXE @S 34055 @O @SCANDrive:\\@SCANDir\\VSHEML.EXE
  195.         @F VSHIELD.EXE @S 207927 @O @SCANDrive:\\@SCANDir\\VSHIELD.EXE
  196.         @F VSHLDCRC.EXE @S 44987 @O @SCANDrive:\\@SCANDir\\VSHLDCRC.EXE
  197.         @F WHATSNEW.TXT @S 25754 @O @SCANDrive:\\@SCANDir\\WHATSNEW.TXT
  198.         @F PACKING.LST @S 1880 @O @SCANDrive:\\@SCANDir\\PACKING.LST
  199.     @EndLib
  200. @EndDisk
  201.